package com.sxhalo.fsms.service;

import com.sxhalo.fsms.domain.MotorReliabilityData;
import com.sxhalo.fsms.mapper.MotorReliabilityDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class MotorReliabilityDataService {

	@Autowired
	private MotorReliabilityDataMapper mapper;

	public Integer insertSelective(MotorReliabilityData record) {
		return mapper.insertSelective(record);
	}

	public Integer updateByPrimaryKeySelective(MotorReliabilityData record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	public Integer deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return null;
	}

	public MotorReliabilityData selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey(Integer.parseInt(key.toString()));
	}

	public int batchUpdate(List<MotorReliabilityData> list) {
		return mapper.batchUpdate(list);

	}

	public Integer batchSave(List<MotorReliabilityData> data) {
		return mapper.batchSave(data);
	}

}
